home *** CD-ROM | disk | FTP | other *** search
- %%BeginProcSet: ArcView_3.0 0 0
-
- %***********************************************************************
- %
- % Token Abreviations
- %
- % PostScript Token Abreviation
- % ---------------- ---------
- % add ad
- % arc ar
- % array ay
- % astore as
- % clip cl
- % colorimage ci
- % concat cc
- % concatmatrix cmx
- % copy cp
- % currentdash cd
- % currentfile cf
- % currentlinewidth cw
- % curveto c
- % cvi cv
- % cvn cn
- % cvs cs
- % cvx cx
- % def df
- % div dv
- % dup dp
- % exch xc
- % exec ex
- % false fa
- % fill fl
- % findfont ff
- % for fr
- % get gt
- % getinterval gi
- % grestore gr
- % gsave gs
- % image ig
- % imagemask im
- % index ix
- % length ln
- % lineto l
- % matrix mx
- % moveto m
- % mul mu
- % neg ng
- % newpath np
- % pathbbox pb
- % pop pp
- % put pt
- % putinterval pi
- % readhexstring rh
- % repeat rp
- % roll rl
- % rotate rt
- % scale sc
- % scalefont scf
- % setcmykcolor cmy
- % setdash sd
- % setfont sf
- % setgray gry
- % setlinecap lc
- % setlinejoin lj
- % setlinewidth lw
- % setmiterlimit ml
- % setrgbcolor rgb
- % show sh
- % string sg
- % stroke st
- % sub sb
- % translate tr
- % true tu
- %
- %***********************************************************************
-
- 512 dict begin
-
- /bd{bind def}bind def
-
- /ad{add}bd
- /ar{arc}bd
- /ay{array}bd
- /as{astore}bd
- /cl{clip}bd
- /ci{colorimage}bd
- /cc{concat}bd
- /cmx{concatmatrix}bd
- /cp{copy}bd
- /cd{currentdash}bd
- /cf{currentfile}bd
- /cw{currentlinewidth}bd
- /c{curveto}bd
- /cv{cvi}bd
- /cn{cvn}bd
- /cs{cvs}bd
- /cx{cvx}bd
- /df{def}bd
- /dv{div}bd
- /dp{dup}bd
- /xc{exch}bd
- /ex{exec}bd
- /fa{false}bd
- /fl{fill}bd
- /ff{findfont}bd
- /fr{for}bd
- /gt{get}bd
- /gi{getinterval}bd
- /gr{grestore}bd
- /gs{gsave}bd
- /ig{image}bd
- /im{imagemask}bd
- /ix{index}bd
- /ln{length}bd
- /l{lineto}bd
- /mx{matrix}bd
- /m{moveto}bd
- /mu{mul}bd
- /ng{neg}bd
- /np{newpath}bd
- /pb{pathbbox}bd
- /pp{pop}bd
- /pt{put}bd
- /pi{putinterval}bd
- /rh{readhexstring}bd
- /rp{repeat}bd
- /rl{roll}bd
- /rt{rotate}bd
- /sc{scale}bd
- /scf{scalefont}bd
- /cmy{setcmykcolor}bd
- /sd{setdash}bd
- /sf{setfont}bd
- /gry{setgray}bd
- /lc{setlinecap}bd
- /lj{setlinejoin}bd
- /lw{setlinewidth}bd
- /ml{setmiterlimit}bd
- /rgb{setrgbcolor}bd
- /sh{show}bd
- /sg{string}bd
- /st{stroke}bd
- /sb{sub}bd
- /tr{translate}bd
- /tu{true}bd
-
- %***********************************************************************
- %
- % Miscellaneous Convenience Operators
- %
- % n1 n2 ... nn x Ds - Define a line dash pattern
- %
- % n = a given dash segment
- % x = the number of dash segements
- %
- % m InMx -> im - Initialize a matrix
- %
- % m = matrix to initialize
- % im = initialized matrix
- %
- % m tx ty Tr -> tm - Translate a matrix
- %
- % m = matrix to translate
- % tx = x translation
- % ty = y translation
- % tm = translated matrix
- %
- % m sx sy Sc -> sm - Scale a matrix
- %
- % m = matrix to scale
- % sx = x scale
- % sy = y scale
- % sm = scaled matrix
- %
- % m a Rt -> rm - Rotate a matrix
- %
- % m = matrix to scale
- % a = angle
- % rm = rotated matrix
- %
- %***********************************************************************
-
- /.dsArray 16 ay df
- /Ds{.dsArray 0 3 -1 rl gi as 0 sd}bd
-
- /.blankMtx mx df /.tempMtx mx df /.gfxMtx mx df
- /InMx{.blankMtx xc cp}bd
- /Tr{.tempMtx InMx tr xc dp 3 1 rl cmx}bd
- /Sc{.tempMtx InMx sc xc dp 3 1 rl cmx}bd
- /Rt{.tempMtx InMx rt xc dp 3 1 rl cmx}bd
-
- %***********************************************************************
- %
- % Color Convenience Operators
- %
- % gryVec - Enables gray vector model
- % g Sg - Set gray stroke intensity
- % g Fg - Set gray fill intensity
- % g Bg - Set gray background intensity
- % rgbVec - Enables RGB vector model
- % r g b Sr - Set RGB stroke color
- % r g b Fr - Set RGB fill color
- % r g b Br - Set RGB background color
- % cmyVec - Enables CMYK vector model
- % c m y k Sc - Set CMYK stroke color
- % c m y k Fc - Set CMYK fill color
- % c m y k Bc - Set CMYK background color
- % S - Stroke the path
- % F - Fill the path
- % FS - Fill the path then stroke it
- % SH - Show the text
- % I - Image mask foreground
- % i - Image mask background
- %
- %***********************************************************************
-
- /gryVec{
- /Sg{/.kS xc df}bd
- /Fg{/.kF xc df}bd
- /Bg{/.kB xc df}bd
- /S{.kS gry st}bd/F{.kF gry fl}bd/SH{.kF gry sh}bd
- /I{.kF gry im}bd/i{.kB gry im}bd
- 0 Sg 0 Fg 0 Bg}bd
- /rgbVec{
- /Sr{/.bS xc df/.gS xc df/.rS xc df}bd
- /Fr{/.bF xc df/.gF xc df/.rF xc df}bd
- /Br{/.bB xc df/.gB xc df/.rB xc df}bd
- /S{.rS .gS .bS rgb st}bd/F{.rF .gF .bF rgb fl}bd/SH{.rF .gF .bF rgb sh}bd
- /I{.rF .gF .bF rgb im}bd/i{.rB .gB .bB rgb im}bd
- 0 0 0 Sr 0 0 0 Fr 0 0 0 Br}bd
- /cmyVec{
- /Sc{/.kS xc df/.yS xc df/.mS xc df/.cS xc df}bd
- /Fc{/.kF xc df/.yF xc df/.mF xc df/.cF xc df}bd
- /Bc{/.kB xc df/.yB xc df/.mB xc df/.cB xc df}bd
- /S{.cS .mS .yS .kS cmy st}bd/F{.cF .mF .yF .kF cmy fl}bd
- /SH{.cF .mF .yF .kF cmy sh}bd
- /I{.cF .mF .yF .kF cmy im}bd/i{.cB .mB .yB .kB cmy im}bd
- 0 0 0 1 Sc 0 0 0 1 Fc 0 0 0 1 Bc}bd
- /FS{gs F gr S}bd
-
- %***********************************************************************
- %
- % Path Construction Convenience Operators
- %
- % lx ly mx my lS - Single line stroke
- % lxn lyn ... lx1 ly1 mx my n ls - Append lines to path (with move)
- % lxn lyn ... lx1 ly1 n ll - Append lines to path (with no move)
- % <args> lsS - Same as 'ls' but stroke
- % <args> llS - Same as 'll' but stroke
- % <args> lsF - Same as 'ls' but fill
- % <args> llF - Same as 'll' but fill
- % <args> lsFS - Same as 'ls' but fill then stroke
- % <args> llFS - Same as 'll' but fill then stroke
- %
- % x1 y1 x2 y2 r - Append rectagle to path
- % <args> rS - Same as 'r' but stroke
- % <args> rF - Same as 'r' but fill
- % <args> rFS - Same as 'r' but fill then stroke
- %
- % x y wd ht e - Append ellipse to path
- % <args> eS - Same as 'e' but stroke
- % <args> eF - Same as 'e' but fill
- % <args> eFS - Same as 'e' but fill then stroke
- %
- %***********************************************************************
-
- /lS{m l S} bd
- /ls{3 1 rl m 1 sb{l}rp} bd
- /ll{{l}rp} bd
- /lsS{ls S}bd
- /llS{ll S}bd
- /lsF{ls F}bd
- /llF{ll F}bd
- /lsFS{ls gs F gr S}bd
- /llFS{ll gs F gr S}bd
-
- /r{3 ix 3 ix m 1 ix 3 ix l 2 cp l 3 ix xc l pp l closepath}bd
- /rS{r S}bd
- /rF{r F}bd
- /rFS{r gs F gr S}bd
-
- /e{2 dv xc 2 dv xc 2 ix 1 ix sb 3 ix 2 ix ad 5 ix 4 ix 1.32 mu sb
- 6 ix 5 ix 1.32 mu ad 7 -3 rl pp pp pp
- 4 ix 4 ix m dp 4 ix 1 ix 5 ix 8 ix 7 ix c 1 ix 3 ix 1 ix 6 ix 8 ix 8 ix c
- 5{pp}rp}bd
- /eS{e S}bd
- /eF{e F}bd
- /eFS{e gs F gr S}bd
-
- %***********************************************************************
- %
- % Tile fill operators
- %
- % Defining a tile:
- %
- % /_<nam> <bits> def
- % /<nam> { <cols> <rows> { _<nam> } td } bd
- %
- % Using a tile once a path has been created:
- %
- % <enable?> fT - Enable/disable tile foreground
- % <enable?> bT - Enable/disable tile background
- % /<nam> <width> <height> T - Fill path with tile
- % /<nam> <width> <height> TS - Fill path with tile then stroke
- %
- %***********************************************************************
-
- /fT{/_fT xc df}bd
- /bT{/_bT xc df}bd
- tu fT fa bT
- /td{[3 ix 0 0 5 ix ng 0 7 ix]xc _bT{4 cp 4 2 rl fa 5 -2 rl i}if
- _fT{4 cp 4 2 rl tu 5 -2 rl I}if 4{pp}rp}bd
- /T{gs cl pb np 4 -2 rl xc 5 ix dv cv 5 ix mu xc 4 ix dv cv 4 ix mu
- 2 cp tr 3 -1 rl xc sb 3 1 rl sb 3 ix dv cv 1 ad xc 2 ix dv cv 1 ad 4 2 rl sc
- {gs dp{1 ix cx ex 1 0 tr}rp gr 0 1 tr}rp gr np pp pp}bd
- /TS{gs T gr S}bd
-
- %***********************************************************************
- %
- % Graphic Object Definition Procedure
- %
- % /name{{ <graphics> } x y siz GfxObj}bd
- % x y siz ang name
- %
- %***********************************************************************
-
- /GfxObj{gs 3 1 rl .gfxMtx InMx 3 1 rl xc ng xc ng
- Tr xc 1 xc dv dp Sc 3 -1 rl Rt 3 -1 rl dp Sc 4 -2 rl Tr cc ex gr}bd
-
- %%EndProcSet
-